<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css"></style>
    <script src="./jquery-3.3.1.min.js"></script>
</head>
<body>
    <h1>JQ 其他</h1>
    <hr>

    <ul id="list">
        <li>不第后赋菊----黄巢</li>
        <li>待到秋来九月八,</li>
        <li>我花开后百花杀。</li>
        <li>冲天香阵透长安，</li>
        <li>满城尽带黄金甲.</li>
    </ul>

    <script>
        $('#list li').each(function(i,n){
            console.log(i,n,this,$(this).index());
        });

        console.log($('#list li').get(2));
        
    </script>
</body>
</html>